<template>
  <div class="app-main">
    <vcu-sticky>
      <vcu-nav-bar
        :title="$route.name"
        left-text="返回"
        left-arrow
        @click-left="onClickLeft"
      />
    </vcu-sticky>
    <router-view />
  </div>
</template>
<script lang="ts">
import { defineComponent, ref } from "vue";
import router from "../router";

export default defineComponent({
  setup() {
    const onClickLeft = () => {
      router.go(-1);
    };
    return {
      onClickLeft,
    };
  },
});
</script>

<style lang="less">
</style>